<template>
  <div class="areaBox" v-if="subAreaList && subAreaList.length !== 0">
    <el-row :gutter="20">
      <el-col
        class="mb_sm"
        :xs="24"
        :sm="12"
        :md="8"
        :lg="6"
        :xl="6"
        v-for="(area, index) in subAreaList"
        :key="index"
      >
        <ImgTitleContent
          :item="area"
          descriptionKey="desc"
          imgKey="imgu"
          @handNavTo="toLinkSiteName(area.tokn)"
        ></ImgTitleContent>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import ImgTitleContent from "@/components/ImgTitleContent";
export default {
  components: { ImgTitleContent },
  props: {
    subAreaList: {
      type: Array,
      default: [],
    },
  },
  data() {
    return {
      areaToken: this.$route.query.areaToken,
    };
  },
  mounted() {},
  methods: {
    toLinkSiteName(areatoken) {
      this.$emit("toLinkSiteName", areatoken);
    },
  },
};
</script>

<style scoped lang='scss'>
.areaBox {
  padding: 0 15px;
}
</style>
